package com.lfd.dubboprovider.service.impl;

import com.lfd.dubboprovider.pojo.User;
import com.lfd.dubboprovider.service.MyProviderDubboService;
import org.apache.dubbo.config.annotation.DubboService;

@DubboService// Dubbo 服务注解，表示这个类将暴露为 Dubbo 服务
public class MyProviderDubboServiceImpl implements MyProviderDubboService {
    @Override
    public User getUser(Integer id) {
        User user = User.builder().age(20).qq("qq")
                .email("email").address("address").phone("phone").password("password").build();
        return user;
    }
}
